﻿<UserControl x:Class="BYS.XiAnComDept.App.Pages.CompanyQuery"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             mc:Ignorable="d" 
             d:DesignHeight="600" d:DesignWidth="800">
    <Grid Style="{StaticResource ContentRoot}">
        <ScrollViewer>
                <StackPanel Orientation="Vertical">
                <StackPanel MinWidth="200" Orientation="Horizontal">
                    <TextBlock VerticalAlignment="Center" Margin="0,0,10,0">单位名称：</TextBlock>
                    <TextBox Name="TextBoxComName" Width="200"></TextBox>
                    <Button Name="ButtonSearch" Click="ButtonSearch_Click" Margin="50,0,0,0">查询</Button>
                </StackPanel>
                <DataGrid Name="DataGridCompanies" AutoGenerateColumns="False" IsReadOnly="True">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=CompanyName}" Header="单位名称"/>
                <DataGridTextColumn Binding="{Binding Path=CompanyPreName}" Header="曾用名"/>
            </DataGrid.Columns>
            <DataGrid.Resources>
                <Style TargetType="DataGridRow">
                    <EventSetter Event="MouseDoubleClick" Handler="DataRow_DoubleClick"/>
                </Style>
            </DataGrid.Resources>
        </DataGrid>
        </StackPanel>
        </ScrollViewer>
    </Grid>
</UserControl>
